package cn.micro.eye.type;

import cn.micro.eye.commons.validate.IEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Arrays;
import java.util.List;

/**
 * 用户搜索方式
 *
 * @author lry
 */
@Getter
@AllArgsConstructor
public enum MemberQueryTypeEnum implements IEnum {

    ALL(0, "全部"),
    NAME(1, "姓名"),
    TEL(2, "电话"),
    ID_CARD(3, "身份证"),
    EMAIL(4, "邮箱");

    public static final List<Integer> GROUP = Arrays.asList(0, 1, 2, 3, 4);

    private final int value;
    private final String title;

}
